<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<%@ include file="../general/header.jsp" %>

	<div id="header">${title}</div>
	<%@ include file="../general/menu.jsp" %>
		<div id="content">
		<form:form method="POST" action="../item/answer" commandName="answerForm">

			<input type="hidden" value="${q.id}" name="questionid"/>

			<span>Question: <c:out value="${q.question}" />	</span>
			<span>Answer: </span>
			<form:input path="answer" />
			<form:errors path="answer" />
			<br/>
			<input type="submit" value="Save" />
		</form:form>
	</div>
	<div id="bottom">
		<span class="inline spaced">
			<a class="color" href="../general/index">Go back to index</a>
		</span>
	</div>
	<%@ include file="../general/footer.jsp" %>